libxl: introduce libxl__is_igd_vga_passthru
authorTiejun Chen <tiejun.chen@intel.com>
Fri, 18 Sep 2015 08:30:16 +0000 (16:30 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 25 Sep 2015 14:59:06 +0000 (15:59 +0100)
commit83215fba3a80c30b5191a4a1086dc510cca43069
treef408c11ef1c632e7445fad20c000f4c9567628e2
parent86f3ff9fc4cc3cb69b96c1de74bcc51f738fe2b9
libxl: introduce libxl__is_igd_vga_passthru

While working with qemu, IGD is a specific device in the case of pass through
so we need to identify that to handle more later. Here we define a table to
record all IGD types currently we can support. Also we need to introduce two
helper functions to get vendor and device ids to lookup that table.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_internal.h
tools/libxl/libxl_pci.c